package com.xh.clean.modular.clean.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 卫生间表
 * </p>
 *
 * @author yangjie123
 * @since 2018-06-23
 */
@TableName("sys_toilet")
public class Toilet extends Model<Toilet> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 楼层ID
     */
    @TableField("storey_id")
    private Integer storeyId;
    /**
     * 位置
     */
    private String position;
    /**
     * 卫生间名称
     */
    private String name;
    private Date createtime;
    private Integer creater;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStoreyId() {
        return storeyId;
    }

    public void setStoreyId(Integer storeyId) {
        this.storeyId = storeyId;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Toilet{" +
        "id=" + id +
        ", storeyId=" + storeyId +
        ", position=" + position +
        ", name=" + name +
        ", createtime=" + createtime +
        ", creater=" + creater +
        "}";
    }
}
